class Imagen < ActiveRecord::Base
  
  has_attachment :content_type => :image, 
                 :storage => :file_system, 
                 :max_size => 500.kilobytes,
                 :thumbnails => { :grande => '700x500>', :media => '300x300>', :mini => '75x75>' }

  validates_as_attachment
  
  has_and_belongs_to_many :blogs
  has_and_belongs_to_many :libros
end
